<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 86185
  Date: 2021/4/26
  Time: 9:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>学生添加</title>
</head>
<body>
<script src="/layui/layui.all.js"></script>
<script src="/jQuery/jquery-3.1.1.js"></script>
<link rel="stylesheet" href="/layui/css/layui.css" type="text/css">
<center>
    <form action="/stu/add" method="post">
        <div class="layui-form-item">
            <label class="layui-form-label">学生编号</label>
            <div class="layui-input-block">
                <input type="text" name="stuno" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">学生名</label>
            <div class="layui-input-block">
                <input type="text" name="stuname" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">生日</label>
            <div class="layui-input-block">
                <input type="date" name="birthday"  required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">身份证</label>
            <div class="layui-input-block">
                <input type="text" name="idcard" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">手机号</label>
            <div class="layui-input-block">
                <input type="number" name="phone" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
            </div>
        </div>
        班级
        <select name="classid">

            <c:forEach items="${list}" var="c" >
                <option value="${c.classid}" >${c.classname}</option>
            </c:forEach>
        </select>
        <br><br>
<%--学生编号:<input type="text" name="stuno" ><br>
学生名:<input type="text" name="stuname"><br>
生日:<input type="date" name="birthday"><br>
身份证:<input type="text" name="idcard"><br>
手机号:<input type="number" name="phone"><br>
班级
<select name="classid" typeof="">

<c:forEach items="${list}" var="c" >
        <option value="${c.classid}" >${c.classname}</option>
</c:forEach>
</select>--%>
        <input type="submit" value="提交" class="layui-btn layui-btn-normal">

    </form>
</center>
</body>
</html>
